package zeno.project.springboot.config.mvc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import zeno.project.springboot.service.impl.TestService;

/**
 * 用于学习配置注入bean
 * @author zhiyong
 */
@Configuration
public class JavaConfig {

    @Bean
    public TestService getTestService() {
        return new TestService();
    }
}
